package com.quick.develop.flowable.domain.definition;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 流程定义创建 Request DTO
 */
@Data
public class BpmProcessDefinitionCreateReqDTO implements Serializable {
    private static final long serialVersionUID = -5416197091541888344L;

    @NotEmpty(message = "流程模型编号不能为空")
    private String modelId;
    
    @NotEmpty(message = "流程标识不能为空")
    private String key;
    
    @NotEmpty(message = "流程名称不能为空")
    private String name;
    
    private String description;
    /**
     * 流程分类
     * 参见 bpm_model_category 数据字典
     */
    @NotEmpty(message = "流程分类不能为空")
    private String category;

    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    
    /**
     * BPMN XML
     */
    @NotEmpty(message = "BPMN XML 不能为空")
    private byte[] bpmnBytes;


}
